import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
	plugins: [
		uni()
	],
	css: {
		preprocessorOptions: {  
		  scss: {  
			// 取消sass废弃API的报警
			silenceDeprecations: ['legacy-js-api', 'color-functions', 'import'],  
		  },  
		},  
	},
	server: {
	  // 允许IP访问
	  host: "0.0.0.0",
	  // 应用端口 (默认:3000)
	  port: 3170,
	  // 运行是否自动打开浏览器
	  open: false,
	}
});